import request from '@/router/axios';

// 登记班组信息
export const shiftGroupRegister = (data) => {
  return request({
    url: '/api/mes-admin/shift-group-register/submit',
    method: 'post',
    data
  });
};

// 分页查询班组登记
export const pageShiftGroupRegister = (current, size, params) => {
  return request({
    url: '/api/mes-admin/shift-group-register/page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const queryLine = (params) => {
  return request({
    url: '/api/mes-product/product/line/list',
    method: 'get',
    params: {
      ...params
    }
  });
};

export const remove = (ids) => {
  return request({
    url: '/api/mes-admin/shift-group-register/remove',
    method: 'post',
    params: ids
  });
};
